package creation.factory.method;

public class Test {
    public static void main(String[] args) {

        //工厂方法
        OrderPizza orderPizza = new OrderPizza();
        orderPizza.createPizza(OrderType.bJType,"chess");
        orderPizza.createPizza(OrderType.bJType,"greek");

        orderPizza.createPizza(OrderType.lDType,"chess");
        orderPizza.createPizza(OrderType.lDType,"greek");
    }
}
